package cn.com.se.jdk8.impl;

import cn.com.se.jdk8.FormulaInterface;

/**
 * Created by hurunlin on 2017/8/15.
 */
public class FormulaInterfaceImpl implements FormulaInterface {

    // 接口直接调用默认方法
    @Override
    public double test1() {
        return sqrt(100);
    }

    public void test() {
        Runnable runnable = () ->
                System.out.println("1111111111");
        Thread thread = new Thread(runnable);
        thread.start();
    }
}
